package com.citycloud.ccuap.tc.yq.dimensionbustype;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.citycloud.ccuap.framework.service.mybatis.MybatisServiceImpl;
import com.citycloud.ccuap.tc.yq.entity.SysDimensionBustype;
import com.citycloud.ccuap.tc.yq.repository.SysDimensionBustypeRepository;

/**
 * 数据维度对业务类型业务处理实现
 * @author sufeng
 *
 */
@Service
public class SysDimensionBustypeService extends MybatisServiceImpl<SysDimensionBustypeRepository, SysDimensionBustype, String> implements ISysDimensionBustypeService {

    @Autowired
    private SysDimensionBustypeRepository secDimensionBustypeRepository;

    @Autowired
    private SysDimensionBustypeMapper secDimensionBustypeMapper;

    @Override
    public List<SysDimensionBustype> getByDatagroupId(String datagroupId) {
        return secDimensionBustypeRepository.findByDatagroupId(datagroupId);
    }

    @Override
    public List<Map<String,Object>> getBusTypesByDatagroupId(String datagroupId) {
        return secDimensionBustypeMapper.findBusTypesByDatagroupId(datagroupId);
    }

}